package com.hectopascal.goalance.pojo;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public class Performance {
    @Id
    private Integer id;
   private Integer workload;
   private Double approvalrate;

    public Performance() {
    }

    public Performance(Integer workload, Double approvalrate) {
        this.workload = workload;
        this.approvalrate = approvalrate;
    }

    public Double getApprovalrate() {
        return approvalrate;
    }

    public void setApprovalrate(Double approvalrate) {
        this.approvalrate = approvalrate;
    }

    public Integer getWorkload() {
        return workload;
    }

    public void setWorkload(Integer workload) {
        this.workload = workload;
    }

    @Override
    public String toString() {
        return "Performance{" +
                "workload=" + workload +
                ", approvalrate=" + approvalrate +
                '}';
    }
}
